﻿module Sustainalytics.Routing {

    export interface IRoutingServiceProvider {

        // what to do when path is reached
        when(path: string, route: ng.route.IRoute, security?: RouteSecurity, requires?: string[]): IRoutingServiceProvider;

        // what to do if no when is met
        otherwise(route: ng.route.IRoute, security?: RouteSecurity, requires?: string[]): IRoutingServiceProvider;
    }
}